package com.scorpio.order.vo;

import com.scorpio.common.utils.verification.AddGroup;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class SubmitShopOrderVo {

    public Long uid;

    //选择配送地址
    @NotNull(message = "无效地址")
    private Long addressId;


    @NotBlank(message = "无效提交")
    private String specNumber;

    @NotNull(message = "无效的购买数量")
    @Min(value = 1, message = "无效的购买数量")
    @Max(value = 99, message = "购买最大数量为99")
    private Integer buyTotal;

    private Long invoiceId;

    private String remark;

    public Long getInvoiceId() {
        return invoiceId;
    }

    public void setInvoiceId(Long invoiceId) {
        this.invoiceId = invoiceId;
    }

    public Integer getBuyTotal() {
        return buyTotal;
    }

    public void setBuyTotal(Integer buyTotal) {
        this.buyTotal = buyTotal;
    }

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public String getSpecNumber() {
        return specNumber;
    }

    public void setSpecNumber(String specNumber) {
        this.specNumber = specNumber;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
